﻿using System;
using System.Collections.Generic;

namespace CommonEngine.Resource
{
    /// <summary>
    /// 条件接口
    /// </summary>
    public interface ICondition
    {
        string Name { get; set; }
        string TableName { get; }
        string PropertyName { get; }
        /// <summary>
        /// 指定判定操作的类型
        /// </summary>
        ConditionOperationType OperationType { get; }
        /// <summary>
        /// 指定判断值的数据类型
        /// </summary>
        ConditionValueType ValueType { get; }
        /// <summary>
        /// 数据源取数据行为
        /// </summary>
        Func<List<ValueNode>> GetInitialDataList { get; }
        /// <summary>
        /// 校验类型(校验条件值)
        /// </summary>
        Type CLRValueType { get; }
    }
}
